﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xwt;
using g42.Inc;

namespace g42.dev_xwt
{
  class Program
  {
    [STAThread]
    static void Main(string[] args)
    {
      switch (OSType.Get())
      {
        case OSTypeEnum.Windows:
          Application.Initialize(ToolkitType.Wpf);
          break;
        case OSTypeEnum.Linux:
          Application.Initialize(ToolkitType.Gtk);
          break;
        case OSTypeEnum.Mac:
          Application.Initialize(ToolkitType.Gtk);
          break;
        default:
          Exception E = new Exception("Unknown OS-plattform");
          throw E;
      }

      Startmask mainWindow = new Startmask();
      mainWindow.Show();
      Application.Run();
      mainWindow.Dispose();
    }
  }
}
